package com.app.auth.inspector;

import org.hibernate.EmptyInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

//@Component
public class SqlInterceptor extends EmptyInterceptor {
    private static Logger logger= LoggerFactory.getLogger(SqlInterceptor.class);
    @Override
    public String onPrepareStatement(String sql) {
        //CCJSqlParserUtil
        logger.info(sql);
        return sql;
    }
}
